package net.lzzy.chapter506;


public class PrintStudent<T> implements Runnable{
    private T[] studetn;

    public PrintStudent(T[] zhi) {
        this.studetn = zhi;
    }

    public PrintStudent() {
    }

    public T[] getStudetn() {
        return studetn;
    }

    public void setStudetn(T[] studetn) {
        this.studetn = studetn;
    }

    @Override
    public void run() {
        for (int i = 0; i < studetn.length; i++) {
            System.out.println(getStudetn()[i]);
        }
    }
}